home *** CD-ROM | disk | FTP | other *** search
/ InterCD 2001 May / may_2001.iso / intercd / root / Multimedia / ^DivX_Article / virtualdub / VirtualDub-source-1_4d / Command.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-03-20  |  2.7 KB  |  92 lines

  1. //    VirtualDub - Video processing and capture application
  2. //    Copyright (C) 1998-2001 Avery Lee
  3. //
  4. //    This program is free software; you can redistribute it and/or modify
  5. //    it under the terms of the GNU General Public License as published by
  6. //    the Free Software Foundation; either version 2 of the License, or
  7. //    (at your option) any later version.
  8. //
  9. //    This program is distributed in the hope that it will be useful,
  10. //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. //    GNU General Public License for more details.
  13. //
  14. //    You should have received a copy of the GNU General Public License
  15. //    along with this program; if not, write to the Free Software
  16. //    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17.  
  18. #ifndef f_VIRTUALDUB_COMMAND_H
  19. #define f_VIRTUALDUB_COMMAND_H
  20.  
  21. #include <windows.h>
  22. #include <vfw.h>
  23.  
  24. class InputFile;
  25. class AVIOutput;
  26. class VideoSource;
  27. class AudioSource;
  28. class IDubber;
  29. class DubOptions;
  30. class FrameSubset;
  31.  
  32. extern InputFile            *inputAVI;
  33.  
  34. extern AVIOutput            *outputAVI;
  35.  
  36. extern VideoSource            *inputVideoAVI;
  37.  
  38. extern AudioSource            *inputAudio;
  39. extern AudioSource            *inputAudioAVI;
  40. extern AudioSource            *inputAudioWAV;
  41.  
  42. extern FrameSubset            *inputSubset;
  43.  
  44. enum {
  45.     AUDIOIN_NONE    = 0,
  46.     AUDIOIN_AVI        = 1,
  47.     AUDIOIN_WAVE    = 2,
  48. };
  49.  
  50. extern int                    audioInputMode;
  51. extern IDubber                *g_dubber;
  52.  
  53. extern COMPVARS            g_Vcompression;
  54. extern WAVEFORMATEX        *g_ACompressionFormat;
  55. extern DWORD            g_ACompressionFormatSize;
  56.  
  57. extern BOOL                g_drawDecompressedFrame;
  58. extern BOOL                g_showStatusWindow;
  59. extern BOOL                g_syncroBlit;
  60. extern BOOL                g_vertical;
  61.  
  62. ///////////////////////////
  63.  
  64. enum {
  65.     FILETYPE_AUTODETECT        = 0,
  66.     FILETYPE_AVI            = 1,
  67.     FILETYPE_MPEG            = 2,
  68.     FILETYPE_ASF            = 3,
  69.     FILETYPE_STRIPEDAVI        = 4,
  70.     FILETYPE_AVICOMPAT        = 5,
  71.     FILETYPE_AUTODETECT2    = 6,
  72. };
  73.  
  74. void OpenAVI(char *szFile, int iFileType, bool fExtendedOpen, bool fQuiet=false, bool fAutoscan=false, const char *pInputOpts=0);
  75. void AppendAVI(const char *pszFile);
  76. void AppendAVIAutoscan(const char *pszFile);
  77. void SetAudioSource();
  78. void CloseAVI();
  79. void OpenWAV(char *szFile);
  80. void CloseWAV();
  81. void CloseNewAVI();
  82. void SaveWAV(char *szFilename, bool fProp = false, DubOptions *quick_opts=NULL);
  83. void SaveAVI(char *szFilename, bool fProp = false, DubOptions *quick_opts=NULL, bool fCompatibility=false);
  84. void SaveStripedAVI(char *szFile);
  85. void SaveStripeMaster(char *szFile);
  86. void SaveSegmentedAVI(char *szFilename, bool fProp, DubOptions *quick_opts, long lSpillThreshold, long lSpillFrameThreshold);
  87. void SetSelectionStart(long ms);
  88. void SetSelectionEnd(long ms);
  89. void RemakePositionSlider();
  90.  
  91. #endif
  92.